package com.mckillion.Exercise3;

public class SensorController {
	private IDoorSensor doorSensor;
	private IHeaterSensor heaterSensor;

	public SensorController(ISensorFactory factory) {
		doorSensor = factory.createDoorSensor();
		heaterSensor = factory.createHeaterSensor();
	}

	public void start() {
		doorSensor.detect();
		heaterSensor.measure();
	}
}
